﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HardwareLibrary.MeterReaderLibrary
{
    public class WM_Struct
    {
        /// <summary>
        /// 上一次的显示数值
        /// </summary>
        public Double LastStableValue;
        /// <summary>
        /// 上一次的稳定时间
        /// </summary>
        public DateTime LastStableTime;
        /// <summary>
        /// 上一次的归零时间
        /// </summary>
        public DateTime LastZoreTime;
        /// <summary>
        /// 是否归零
        /// </summary>
        public bool IsZoreFlag;
        /// <summary>
        /// 是否稳定
        /// </summary>
        public bool IsStable;
        /// <summary>
        ///起始标示符16进制
        /// </summary>
        public int iBeginFlag;
        /// <summary>
        ///起始标示符
        /// </summary>
        public string strBeginFlag;
        /// <summary>
        /// 结束标示符16进制
        /// </summary>
        public int iEndFlag;
        /// <summary>
        /// 结束标示符
        /// </summary>
        public string strEndFlag;
        /// <summary>
        /// 字符串长度
        /// </summary>
        public int strLen;
        /// <summary>
        /// 数据长度
        /// </summary>
        public int DataLen;
        /// <summary>
        /// 数据起始位
        /// </summary>
        public int DataBeginFlag;
        /// <summary>
        /// 分母大小[100,1000]
        /// </summary>
        public int DenominatorLen;
        /// <summary>
        /// 排序方式
        /// </summary>
        public string DataOrder;

        public int iPortNum = 1;

        public string strParam = "9600,N,8,1";

        public int iBaudRate = 9600;

        public string macName;
    }
}
